package com.ea.demo.autogenapi.base.vo;

import io.swagger.annotations.ApiModelProperty;

/**
 * Author: daiqiang
 * Date: 2019/5/1
 * Description: No Description
 */
public class PageParam extends BaseVo {
    @ApiModelProperty(value = "当前页码，从1开始")
    private int pageNo;
    @ApiModelProperty(value = "分页大小")
    private int pageSize;

    public int getPageNo() {
        return pageNo<=0?1:pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize<=0?20:pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
